////////////////////////////////////////////////
// File: Advertisement.java
// Description: Enter summary here after generation.
// Date: 2016-09-23 09:09:33
// Web: http://www.elanzhou.com/
////////////////////////////////////////////////
package com.mvc.entity;
import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import java.util.Date;
import java.text.SimpleDateFormat;
/**
 * advertisement entity. @author 马威
 */
@Entity
@Table(name = "advertisement")
public class Advertisement implements java.io.Serializable {

	private static final long serialVersionUID = 1L;
	@Id
	@Basic(optional = false)
	@GeneratedValue(strategy = GenerationType.IDENTITY)   
    @Column(name = "ID", nullable = false)
	private Integer ID;
    //标题
    @Column(name = "title")
	private  String Title;
    //发布时间
    @Column(name = "addate")
	private  String Addate;
    //发布时间
    @Column(name = "adtype")
	private  String Adtype;
    //图片
    @Column(name = "adpic")
	private  String Adpic;
    //内容
    @Column(name = "contxt")
	private  String Contxt;
    //推荐
    @Column(name = "adrec")
	private  String Adrec;
    //发布人
    @Column(name = "memname")
	private  String Memname;
    public int getId() {
       return this.ID;
	   }
	public void setId(int ID) {
	   this.ID = ID;
       }
    public String getTitle() {
       return this.Title;
	   }
	public void setTitle(String Title) {
	   this.Title = Title;
	   }
    public String getAddate() {
       return this.Addate;
	   }
	public void setAddate(String Addate) {
	   this.Addate = Addate;
	   }
    public String getAdpic() {
       return this.Adpic;
	   }
	public void setAdpic(String Adpic) {
	   this.Adpic = Adpic;
	   }
    public String getContxt() {
       return this.Contxt;
	   }
	public void setContxt(String Contxt) {
	   this.Contxt = Contxt;
	   }
    public String getAdrec() {
       return this.Adrec;
	   }
	public void setAdrec(String Adrec) {
	   this.Adrec = Adrec;
	   }
    public String getMemname() {
       return this.Memname;
	   }
	public void setMemname(String Memname) {
	   this.Memname = Memname;
	   }
	public String getAdtype() {
		return Adtype;
	}
	public void setAdtype(String adtype) {
		Adtype = adtype;
	}

}